package com.cms.service.converter;

import com.cms.dao.entity.UserPrimaryEntity;
import com.cms.service.dto.UserPrimaryDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName UserPrimaryConverter  Dto与entity之间数据的转换
 */
@Mapper
public interface UserPrimaryConverter {

    UserPrimaryConverter CONVERTER = Mappers.getMapper(UserPrimaryConverter.class);

    UserPrimaryEntity dtoToEntity(UserPrimaryEntity dto);

    UserPrimaryDto  entityToDto(UserPrimaryEntity entity);
}
